package org.dromara.web.system.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.system.domain.AppBillDetail;

/**
 * 账单明细业务对象 app_bill_detail
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppBillDetail.class, reverseConvertGenerate = false)
public class AppBillDetailBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 交易数量
     */
    private Long transactionAmount;

    /**
     * 用户剩余余额
     */
    private Long userBalance;

    /**
     * 类型 1收入 2支出
     */
    private Long type;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
